import request from '@/request';
/*
* 获取用户基本信息
*/
export const getUserInfo = () => {
	return request.get('/rm/userExtension/findResumeByUserId')
}
/*
* 获取信息完整度
*/
export const getUserAllInfo = () => {
	return request.get('/rm/userExtension/calInfoIntegrity')
}
/*
* 获取文档技能信息
*/
export const getSkill = () => {
	return request.get('/rm/exam/customer/listAdeptLanguages')
}
/*
* 获取桌面排版技能信息
*/
export const getDeskSkill = () => {
	return request.get('/rm/newSkillController/getCurrentUserDtp')
}
/*
* 获取账户金额
*/
export const getAccountAmount = (userCode) => {
	return request.get('/rm/financeNew/listPersonAccountSummary', { userCode })
}
/*
*获取提现条件
*/
export const getjudge = () => {
	return request.get('/rm/financeNew/judge')
}
/*
*获取税率税额  
*/
export const getRateAndTaxation = (data) => {
	return request.get('/rm/financeNew/calCashWithdrawalAmount',data)
}
/*
*获取用户账户信息 
*/
export const getCurrentCashoutInfo = (data) => {
	return request.get('/rm/financeNew/getCurrentCashoutInfo',data)
}


/*
*确认提现
*/
export const applyCashWithdrawal = (params) => {
	// return request.get('/rm/financeNew/applyCashWithdrawal',data)
	return request.request('/rm/financeNew/applyCashWithdrawal', params, {
		method: 'post',
		// headers: {
		// 	'Content-Type': 'application/x-www-form-urlencoded'
		// }
		headers: {
			"Content-Type": 'application/json'
		},
	})
}


/**************************************user公共方法*****************************************/
//注册全局，基本信息是否填写，“身份、技能、财务”是否通过
// export const isAuth = {
// 	nickName: data.nickName,
// 	isPassIdentity: data.userExtension.certificatePassed,
// 	isPassFinance: data.userExtension.settleCertificatePassed,
// 	isPassSkill: data.userExtendList.length > 0
// }




